package com.lbs.jiepiaisi.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;

import com.lbs.jiepiaisi.R;
import com.lbs.jiepiaisi.base.BaseActivity;
import com.lbs.jiepiaisi.utils.ButtonUtil;
import com.lbs.jiepiaisi.utils.IntentUtil;

/**
 *
 * 时间：2017/8/18 10:42
 * 作用：
 */

public class AccountSettingActivity extends BaseActivity {
    //修改密码
    private LinearLayout line_change_password;
    //清楚缓存
    private LinearLayout liner_change_cache;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        isTemplate=true;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account_setting);
        titleView.setText("设置");
        templateButtonLeft.setImageResource(R.mipmap.back_white);
        findView();
        setListener();
    }

    private void findView(){
        //修改密码
        line_change_password= (LinearLayout) findViewById(R.id.line_change_password);
        //清除缓存
        liner_change_cache= (LinearLayout) findViewById(R.id.liner_change_cache);

    }

    private void setListener() {
        //修改密码
        line_change_password.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (ButtonUtil.isFastClick()) {
                    IntentUtil.gotoActivity(mContext,AccountChangePassWordActivity.class,false);
                }
            }
        });
        //清楚缓存
        liner_change_cache.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.e("TAG","22222222222222222222");
            }
        });
    }
}
